home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
biz
/
patch
/
fixobj11.lha
/
FixObj.doc
< prev
next >
Wrap
Text File
|
1993-03-16
|
2KB
|
32 lines
FixObj 1.1 : Fixes Pixel3DPro generated Wavefront files
This program was made because I'm using Wavefront at school, and
Imagine at home. I've gotten a few objects converted back and forth
by a friend on IRC, and when going to Wavefront, they have this knack
of crashing it spectacularly. Makes ya wonder if they ever really
tested their Wavefront saver. :) Anyway, doing a hex dump, I noticed that
P3dPro files have a carriage return character $0d, and Wavefront Model
apparently chokes on it. Also, it adds a 'g' character before listing
the vertices and faces, something Wavefront needs to set up the
group/object's name. Adding just a 'g' and carriage return makes
Wavefront load it in as a default group.
Right now, the program requires just enough memory to have the file
in memory twice. Since I made it out of personal need and I have plenty
of memory, that's ok for me, but if anyone else finds it of use until
Pixel 3d Pro 2.1 comes out or whatever, and needs it to use less memory,
I'll try to make it so that it just uses a few bytes by loading and
saving simultaneously. I'm still learning E right now.. great language!
Bug Fixes:
----------
Ok, like a damn-fool-idiot, I posted a version that I had in my C: just
before I got it working completely right. So, the original FixObj doesn't
work! (I'm noticing this a couple weeks after I originally uploaded it- the
next time I needed it.) So, here's the fixed, (should-be) working version,
and I added a few lines to check and make sure you haven't already run
FixObj on the object.
Dan "Danimal" on IRC
djm2@ra.msstate.edu